#pragma once

#include <Windows.h>

#using <System.dll>

using namespace System;
using namespace System::IO::Ports;
using namespace System::Threading;

public ref class SerialInterface
{
private:
    static bool _continue;
    static SerialPort^ _serialPort;

public:
	SerialInterface(void);
	~SerialInterface(void);

	String^ message;
	static Thread^ readThread = gcnew Thread(gcnew ThreadStart(SerialInterface::Read));

	static void Initialize();
	static void Update();
	static void Read();
	static void Close();
};